package com.eckey.lab.consumer;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @Author: ChengLiang
 * @CreateTime: 2023-11-13  09:43
 * @Description: TODO
 * @Version: 1.0
 */
@Slf4j
@EnableDubbo
@EnableDiscoveryClient
@SpringBootApplication(
        exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class},
        scanBasePackages = {"com.eckey.lab.consumer.*"})
public class DubboConsumerApplication {
    public static void main(String[] args) {
        log.info("这是新的DubboConsumerApplication");
        SpringApplication.run(DubboConsumerApplication.class, args);
    }
}
